package com.hyperf.core.web;


import org.springframework.http.HttpStatus;

/**
 * @author lizhaoyang
 */
public abstract class AbstractViewController {

    /**
     * 状态码
     *
     * @return
     */
    public HttpStatus getStatusCode() {
        return HttpStatus.OK;
    }

    /**
     * 视图名称
     *
     * @return
     */
    public abstract String getViewName();

    /**
     * 请求路径
     *
     * @return
     */
    public abstract String getUrlPath();
}
